package cn.bytecollege.user.service;

import cn.bytecollege.common.entity.Category;
import cn.bytecollege.user.dao.CategoryDao;

import java.util.List;

public class CategoryService {
    private CategoryDao categoryDao = null;
    public CategoryService(){
        categoryDao = new CategoryDao();
    }
    /**
     * 查找种类
     * @return
     */
    public List<Category> findCategory(){
        return categoryDao.findCategory();
    }
}
